package com.bauer.java.spring.aop.traditional;


import org.aspectj.lang.JoinPoint;

public class MyAdvice {
    public void before(JoinPoint jp){
        System.out.println("--------------------bofore--------------------");
        System.out.println("方法名："+jp.getSignature()+"，参数："+jp.getArgs().length+"，代理对象："+jp.getTarget());

    }

    public void after(JoinPoint jp){
        System.out.println("MyAdvice after");
    }
}
